package com.flame.core.utils;

/**
 *
 *
 * @author wuxintong
 * @since 2023/3/22
 */
public class SystemUtils {

    public static boolean isWindows() {
        String osName = System.getProperty("os.name").toUpperCase();
        return StringUtils.hasText(osName) && osName.startsWith("WINDOWS");
    }

    public static boolean isMac() {
        String osName = System.getProperty("os.name").toUpperCase();
        return StringUtils.hasText(osName) && osName.startsWith("MAC");
    }

    public static boolean isLinux() {
        String osName = System.getProperty("os.name").toUpperCase();
        return StringUtils.hasText(osName) && osName.startsWith("LINUX");
    }
}
